//package com.yang;
//
//import org.bukkit.Bukkit;
//import org.bukkit.configuration.file.YamlConfiguration;
//import org.bukkit.event.EventHandler;
//import org.bukkit.event.Listener;
//import org.bukkit.plugin.Plugin;
//import org.bukkit.plugin.java.JavaPlugin;
//
//import java.io.File;
//import java.util.logging.Logger;
//
//public class Monster implements Listener {
//
//    private YamlConfiguration config;
//    private Plugin plugin;
//
//    private Logger logger;
//
//    // 构造函数接收File对象并读取配置文件内容
//    public Monster(YamlConfiguration config, Plugin plugin,Logger logger) {
//        this.config = config;
//        this.plugin = plugin;
//        this.logger = logger;
//        Bukkit.getPluginManager().registerEvents(this, plugin);
//    }
//
//    // 读取Yml怪物列表
//    @EventHandler
//    public void readYmlMonsters(){
//        String guaiwu = config.getString("guaiwu");
//        logger.info("启动了怪物" + guaiwu);
//    }
//
//
//    // 从配置文件中读取值的方法
////    public void readConfigValues() {
////        String setting1Value = config.getString("setting1");
////        int setting2Value = config.getInt("setting2");
////
////        // 输出读取到的值
////        System.out.println("Setting 1: " + setting1Value);
////        System.out.println("Setting 2: " + setting2Value);
////    }
//
//}
